package com.xucy.springboot.designmodel.creational.single;

/**
 * 枚举单例
 *
 * @Author xucy
 * @Date 10:53 2019-07-17
 * @param
 * @return
 */
public enum EnumSingleton {
     INSTANCE;

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static EnumSingleton getInstance(){
        return INSTANCE;
    }
}
